﻿using Microsoft.Extensions.DependencyInjection;

namespace Shared.Crypto
{
    public static class CryptoServicesCollectionExtensions
    {
        /// <summary>
        /// 密码加密服务
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddPasswordHashService(this IServiceCollection services)
        {
            services.AddTransient<IPasswordHash, Password>();
            return services;
        }
    }
}
